import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 18,
    menuWidth: 300,
    header: true,
    addBtn: false,
    addBtnText: '新增',
    editBtn: false,
    delBtn: false,
    viewBtn: false,
    searchLabelWidth: 120,
    menu: true,
    column: [
      {
        label: '地区',
        prop: 'p1',
        overHidden: true,
      },
      {
        label: '服务区数量',
        prop: 'p2',
        overHidden: true,
      }
    ]
  }
}

export const options1 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    searchShow: false,
    menuWidth: 300,
    menu: false,
    header: false,
    addBtn: false,
    addBtnText: '新增申报',
    // editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '服务区名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '位置简介',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '当前距离',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
    ]
  }
}
